package mapper;

import Message.entity.DishFlavor;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DishFlavorMapper {


    void deleteByDishId(Long dish_id);

    void insert(@Param("flavors") List<DishFlavor> flavors);

    void deleteBatch(List<Long> dishId);

    /**
     * 根据菜品id查询口味列表
     * @param dishId
     */
    List<DishFlavor> selectByDishId(Long dishId);
}
